<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <script src="lib/vue.js"></script>
    </head>
</html>
<body>
    <div id="app">
        {{newPrice}}
    </div>
    <script type="text/javascript">
        var vue =new Vue({
            el: '#app',
            data: {
                price:100
            },
            computed:{
                newPrice: function(){
                    return this.price='￥' + this.price + '元';
                }
            }
        })
    </script>
</body>